package com.catfive.jet_work.ui

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import javax.inject.Inject
import javax.inject.Singleton



class MyAppViewModel : ViewModel() {
    private val _title =  MutableStateFlow("")
    val title:StateFlow<String> = _title

    fun updateTitle(value: String) {
        viewModelScope.launch {
            _title.value = value
        }
    }
}